<?php
  $this->headMeta()->appendHttpEquiv('Content-Type', 'text/html;charset=utf-8');
  $this->headTitle()->setSeparator(' - ');
  $this->headTitle('Zend Framework Tutorial');
  echo $this->doctype(); ?>

  <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
  <head>
      <?php echo $this->headMeta(); ?>
      <?php echo $this->headTitle(); ?>
      <?php echo $this->headLink()->prependStylesheet($this->baseUrl().'/css/site.css'); ?>
  </head>
  <body>

    <?php if(isset($this->login->uname)) { ?>
      <div style="text-align:right">Welcome <strong><?=$this->login->uname?></strong>,&nbsp;
        <a href="<?php echo $this->url(array('controller'=>'User','action'=>'logout'));?>">Logout</a>
      </div>
    <?php } ?>

    <div id="content">
      <h1><?php echo $this->escape($this->title); ?></h1>
      <?php echo $this->layout()->content; ?>
    </div>
  </body>
</html>
